﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>alerts</title>


    <!-- WinJSContrib.Core references -->
    <script src="./scripts/jquery-2.1.1.js"></script>
    <script src="./scripts/winjscontrib/jquery.mcnext.WinJS.js"></script>
    <script src="./scripts/winjscontrib/mcnext.ui.utils.js"></script>

    <link href="alerts.css" rel="stylesheet" />
    <script src="alerts.js"></script>
</head>
<body>
    <div class="alerts fragment">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back" disabled type="button"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle">Alerts (WinJSContrib.Core)</span>
            </h1>
            <div class="codelink" data-codepage="./pages/alerts/alerts"><span class="symbol">&#xE160;</span><span class="text">show me the code !</span></div>
        </header>
        <section class="desc-screen" aria-label="Main content" role="main">
            <div class="bloc-description">
                <p>The core library has shortcuts for displaying message box and toast alerts.</p>
                <p>Remember to enable toast notifications in your manifest before trying to send toasts...</p>

                <p>
                    To use notifications in Cordova App you have to add this plugins:
                </p>
                <p>
                    - org.apache.cordova.device
                    - de.appplant.cordova.plugin.local-notification
                </p>

                <p>
                    To use dialogs messages in Cordova App you have to add this plugin:
                </p>
                <p> - org.apache.cordova.dialogs</p>
            </div>
            <div class="bloc-content">
                <div class="split">
                    <div>
                        <h2>messages</h2>
                        <p><button data-page-action="simpleMessage">Simple message</button></p>
                        <p><button data-page-action="confirm">Confirm</button></p>
                        <p><button data-page-action="rawMessage">Raw message</button></p>
                    </div>
                    <div>
                        <h2>Toasts</h2>

                        <p><button data-page-action="simpleToast">Simple toast</button></p>
                        <p><button data-page-action="simpleToastWithPic">Simple toast with picture</button></p>
                        <p><button id="rowtoast" data-page-action="rawToast">Raw toast</button></p>
                    </div>
                </div>
            </div>
        </section>
    </div>
</body>
</html>
